import { post, get } from '../../../request.js'

/**
 * 查询业务模型列表
 * @param {*} params
 * @returns
 */
export const businessModelList = params => {
    return post({
        url: '/tool/dmd/businessModel/pageList',
        params
    })
}

/**
 * 获取表
 * @param {*} params
 * @returns
 */
export const getTables = params => {
    return get({
        url: '/tool/dmd/businessModel/getTables',
        params
    })
}

/**
 * 获取表（分页）
 * @param {*} params
 * @returns
 */
export const pageTables = params => {
    return post({
        url: '/tool/dmd/businessModel/pageTables',
        params
    })
}
/**
 * 获取表中的列
 * @param {*} params
 * @returns
 */
export const getColumns = params => {
    return get({
        url: '/tool/dmd/businessModel/getColumns',
        params
    })
}

/**
 * 创建数据模型
 * @param {} params
 * @returns
 */
export const createBusinessModel = params => {
    return post({
        url: '/tool/dmd/businessModel/create',
        params
    })
}

/**
 * 删除数据模型
 * @param {*} params
 * @returns
 */
export const delBusinessModel = params => {
    return post({
        url: '/tool/dmd/businessModel/delete',
        params
    })
}

//获取模型列数据
export const getGebTableColumns = params => {
    return get({
        url: '/tool/dmd/businessModel/getGebTableColumns',
        params
    })
}

export const configColumn = params => {
    return post({
        url: '/tool/dmd/businessModel/configColumn',
        params
    })
}
